package cn.schoolwow.quickdao.test.module.business.user.thread.testcase;

import cn.schoolwow.quickdao.test.module.business.user.dml.userRole.flow.add.InitialInsertUserRoleFlow;
import cn.schoolwow.quickdao.test.module.business.user.thread.flow.CheckThreadRequestResultFlow;
import cn.schoolwow.quickdao.test.module.business.user.thread.flow.MultipleThreadInsertUserRoleProcessFlow;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;

public class MultipleThreadTestCaseFlow implements CompositeBusinessFlow {
    @Override
    public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
        quickFlowExecutor.next(new InitialInsertUserRoleFlow())
                .next(new MultipleThreadInsertUserRoleProcessFlow())
                .next(new CheckThreadRequestResultFlow());
    }

    @Override
    public String name() {
        return "多线程插入测试用例";
    }
}
